package com.wang.mall.service;

import com.wang.mall.bean.OmsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.mall.to.rabbitmq.SeckillOrderTo;
import com.wang.mall.vo.*;

import java.util.List;

public interface OmsOrderService extends IService<OmsOrder>{


    /**
     * 构建订单确认页数据
     * @return
     */
    OrderConfirmVo generateOrder();

    /**
     * 订单提交
     * @param submitVo
     * @return
     */
    SubmitOrderResponseVo submitOrder(OrderSubmitVo submitVo);

    /**
     * 关闭订单
     * @param omsOrder
     */
    void closeOrder(OmsOrder omsOrder);

    PayVo getOrderPay(String orderSn);

    /**
     * 处理支付结果
     * @param payAsyncVo
     * @return
     */
    String handlePayResult(PayAsyncVo payAsyncVo);

    /**
     * 获取当前用户待发货的订单
     * @return
     */
    List<OmsOrder> getCurrentUserList();


    /**
     * 创建秒杀单
     * @param seckillOrderTo
     */
    void createdSeckillOrder(SeckillOrderTo seckillOrderTo);

}
